package com.wanxi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li
 * @Date 2023/4/27 10:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "公司信息",description = "描述公司对象")
@TableName("companyinfo")
public class CompanyModel {
    @TableId(value = "id", type = IdType.ASSIGN_ID)//雪花算法
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "公司id",example = "1678239961299619841")
    private Long id;
    @ApiModelProperty(value = "公司logo",example = "/xx.jpg")
    private String logo; //公司logo
    @ApiModelProperty(value = "公司名称",example = "瓦蛤蛤事务所")
    private String name; //公司名称
    @ApiModelProperty(value = "公司座机号",example = "021-87888822")
    private String landLine;//座机
    @ApiModelProperty(value = "公司手机号",example = "13675986666")
    private String mobilePhone;//手机
    @ApiModelProperty(value = "公司邮箱",example = "whh@qq.com")
    private String email;//邮箱
    @ApiModelProperty(value = "公司传真号",example = "021-87888822")
    private String fax;//传真
    @ApiModelProperty(value = "邮编",example = "551366")
    private String zipCode;//邮编
    @ApiModelProperty(value = "公司地址",example = "成都市武侯区")
    private String address;//地址
    @ApiModelProperty(value = "创建时间",example = "2023-05-17 11:19:07")
    private String createTime;
    @ApiModelProperty(value = "修改时间",example = "2023-05-18 11:19:07")
    private String updateTime;
    @ApiModelProperty(value = "状态",example = "1")
    private Integer enable;
    @ApiModelProperty(value = "备注",example = "承接各种民事诉讼，财产纠纷等")
    private String remark;
    @ApiModelProperty(value = "页数",example = "1")
    @TableField(exist = false)
    private Integer page;
    @ApiModelProperty(value = "每页条数",example = "10")
    @TableField(exist = false)
    private Integer limit;

}
